#include<stdio.h>
#include<stdlib.h>

char *strcpy(char *src)
{
	int i,L;
	char *p;
	for(i=0;src[i]!='\0';i++) L++;
	p=(char*)malloc((L+1)*sizeof(char));
	for(i=0;i<L;i++) p[i]=src[i];
	p[L]='\0';
	return p; 
}
int main()
{
	char *src;
	src=(char *)malloc(sizeof(src)/sizeof(char));
	scanf("%s",src);
	char *p;
	p=(char *)malloc(sizeof(p)/sizeof(char));
	p=strcpy(src);
	puts(p);
	return 0;
}
